#
#
# import pytest
# import requests
#
#
#
# @pytest.fixture(scope='function')
# def add_shop():
#     #预设数据
#     data={
#         "suoShuKeHu":"X00001",
#         "cfWenCeng":"冷藏",
#         "chpShuXing":"日用",
#         "gaoDanPin":"100",
#         "shpBianMa":"ITEM-001",
#         "shpMingCheng":"测试产品",
#         "shlDanWei":"个",
#         "jfShpLei":"10",
#         "chlKongZhi":"N",
#         "chlShl":"1"
#     }
#     yield data
#     #使用之后删除数据
#     if data is not None:
#         del data
#
# @pytest.fixture(scope='function')
# def add_cang():
#     #预设数据
#     data = {
#         "suoShuKeHu": "X00001",
#         "cfWenCeng": "冷藏",
#         "chpShuXing": "日用",
#         "gaoDanPin": "100",
#         "shpBianMa": "WH-001",
#         "shpMingCheng": "测试仓库",
#         "shlDanWei": "个",
#         "jfShpLei": "10",
#         "chlKongZhi": "N",
#         "chlShl": "1"
#     }
#     yield data
#     if data is not None:
#         del data
#
# @pytest.fixture(scope='function')
# def add_del_goods():
#     url="http://49.233.83.37:8080/jeewms/mdGoodsController.do?doAdd"
#     headers = {"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
#                "Cookie": "JEECGINDEXSTYLE=ace; JSESSIONID=8B59FD207D1DAD1EEF95F355B6B8E533; ZINDEXNUMBER=2020"}
#     body = {"suoShuKeHu": "X00001",
#             "cfWenCeng": "常温",
#             "chpShuXing": "日用品",
#             "shpBianMa": "L005",
#             "shpMingCheng": "王老吉",
#             "shlDanWei": "箱",
#             "chlKongZhi": "N"}
#     requests.post(url,headers=headers,body=body,timeout=5)
#
#
#
# @pytest.fixture(scope='function')
# def add_del_cang():
#     url="http://49.233.83.37:8080/jeewms/mdGoodsController.do?doAdd"
#     headers = {"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
#                "Cookie": "JEECGINDEXSTYLE=ace; JSESSIONID=8B59FD207D1DAD1EEF95F355B6B8E533; ZINDEXNUMBER=2020"}
#     body = {"suoShuKeHu": "X00001",
#             "cfWenCeng": "常温",
#             "chpShuXing": "日用品",
#             "shpBianMa": "L005",
#             "shpMingCheng": "王老吉",
#             "shlDanWei": "箱",
#             "chlKongZhi": "N"}
#     requests.post(url,headers=headers,body=body,timeout=5)

import pytest
@pytest.fixture(scope='function')
def add_shop():
    """

    :return:
    """
    data={
        "xingYeFenLei": "QY_SX_001",
        "keHuBianMa": "45849583",
        "keHuShuXing": "10",
        "keHuZhuangTai": "10",
        "zhongWenQch": "如图水电费苦上加苦",
        "zhuJiMa": "753735",
        "yingYeZhiZhao": "123313",
        "diZhi": "南口南234号",
        "zhuLianXiRen": "阿斯顿",
        "shouJi": "15855478524"
    }
    yield data
    if data is not None:
        del data
@pytest.fixture(scope='function')
def add_ku():
    data={
        "createBy": "阿达大大",
        "createDate": "2025-08-25",
        "rfidType": "asd",
        "rfidBuseno": "12211",
        "rfidId1": "1",
        "rfidId2": "1",
        "rfidId3": "1"
    }
    yield data
    if data is not None:
        del data